﻿@model Weibo.Web.Models.MyMiniBlogModel
                      @{
                          var border = "";
                          if (Model.CurUserConfig.IsThemeDIY == 1)
                          {
                              ThemeDIY diy = Themes.GetThemeDIYByUID(Model.CurUser.ID);
                              border = diy.BorderStyle + "Bg";
                          }
                          ViewData["curBorder"] = border;
 }
 @{
     Layout = "~/Views/Shared/_Layout.cshtml";
 }
 @{
     ViewBag.Title = "我的微博 XX微博-随时随地分享身边的新鲜事儿";
 }
 @section  cssInsert{
    <link rel="stylesheet" type="text/css" href="/Content/CSS/miniblog/index.css" />
    <link rel="stylesheet" type="text/css" href="@Model.CurSkinCss" />
    <link rel="stylesheet" type="text/css" href="/Content/CSS/miniblog/layer.css" />
    }
  @section  jsInsert{   
    <script type="text/javascript">
        var curBorder = "@border";
    </script>
     <script src="/Scripts/DatePicker.js" type="text/javascript"></script>
      <script src="../../Scripts/js/my.js" type="text/javascript"></script>
    }

            <div class="MIB_blogbody">
                <div class="MIB_mblogbgr @border">
                    <div class="MIB_mblogbgl">
                        <div class="mainR MIB_200 MIB_txtar MIB_linkar">
                            @RenderPage("~/Views/Shared/_userInfoNoAvatar.cshtml")
                            @RenderPage("~/Views/Shared/Wedget_MyInfo.cshtml")
                             @RenderPage("~/Views/Shared/Wedget_MyTags.cshtml")
                            @RenderPage("~/Views/Shared/Wedget_MyFan.cshtml")
                            @RenderPage("~/Views/Shared/Wedget_MyFollow.cshtml")
                            
                            @RenderPage("~/Views/Shared/Wedget_MyTopic.cshtml")
                           
                        </div>
                        <div id="profileL" class="mainL MIB_600 MIB_txtal MIB_linkal">
                        <div id="profileHead" class="MIB_mbloghead">
              <div id="profileHeadBg" class="MIB_mbloglist">
                <div class="other_headpic"><a href="#"><img title="@Model.CurUser.NickName" src="@Model.CurUser.BigAvartar"></a></div>
                <div class="other_info">
                  <div class="name MIB_txtal">
                  	<span class="lf">@Model.CurUser.NickName</span>
					<span class="aboutwho rt"><a onclick="App.showPopMiniBlog();return false;" href="javascript:void(0)" id="publisher"><img align="absmiddle" title="我要发微博" class="small_icon saysomething" src="/Content/Image/transparent.gif">我要发微博</a></span>
                  </div>
                  <p>
                  @{
                      if (string.IsNullOrEmpty(Model.CurUser.CustomSite))
                      {
                  <a href="@(BaseConfigs.GetWebDomain + "/" + Model.CurUser.ID)">@(BaseConfigs.GetWebDomain + "/" + Model.CurUser.ID)</a>
                      }
                      else
                      {
                 <a href="@(BaseConfigs.GetWebDomain + "/" + Model.CurUser.CustomSite)">@(BaseConfigs.GetWebDomain + "/" + Model.CurUser.CustomSite)</a>
                      }
                      }</p>
				  <div class="ad MIB_txtbl"><img src="/Content/Image/transparent.gif" class="small_icon @{@(Model.CurUser.Sex == TypeConfigs.GetSexFemale ? "sicon_female" : "man")}" title="@{@(Model.CurUser.Sex == TypeConfigs.GetSexFemale ? "女" : "男")}">@{@Types.GetCityTypesFullName(Model.CurUser.Location);}</div>
				  				  <p class="blog MIB_txtbl">
                                  @{
                                      if (string.IsNullOrEmpty(Model.CurUser.Blog))
                                      {
                                  <a href="/Setup/BaseInfo">添加</a><em style="color:#707070;">自己的博客地址</em>
                                      }
                                      else
                                      {
                                        <a href="https://@Model.CurUser.Blog">@Model.CurUser.Blog</a>
                                      }
                                      }
                                  </p> 
                                   @{
                                      if (!string.IsNullOrEmpty(Model.CurUser.Description))
                                      {
                                        <p class="MIB_txtbl">@Model.CurUser.Description</p>
                                      }
                                   }
                                    </div>
                </div>
              </div>
                          <div id="profileFeed" class="MIB_mbloglist">
                          <div class="newFilter MIB_txtal newFilterMb0">
				<div class="nfTagB nfTagOff">
					<ul>
						<li class="current"><span>微博</span></li>
						<li><a href="/@Model.CurUser.ID/Info">我的资料</a></li>
                        <li><a href="/@Model.CurUser.ID/history">时光轴</a></li>
					</ul>
				<div class="clear"></div>
				</div>
			</div>
            <div class="nfBox" style="">
						<div style="display: @(Model.IsAdvanced>0?"none":"block");" class="nfBoxSim" id="filter_key_panel">
							<div id="filter_nav_panel" class="left">
																@{
                                                                    var u = Request.Url.AbsolutePath;
                                                    u="#!"+u;
                                                    if(Model.IsHaveMusic!=1&&Model.IsHavePic!=1&&Model.IsHaveVideo!=1&&Model.IsHaveVote!=1&&Model.IsOri!=1)
                                                {
                                                <a title="全部" action="all" href="@u" class="current">
                                                    全部</a>
                                                    }
                                                    else{
                                                     <a title="全部" action="all" href="@u">
                                                    全部</a>
                                                    } 
                                                    if(Model.IsOri==1){
                                                        <a title="原创" action="IsOri" href="@(Utils.AddQueryToUrl(u, "IsOri", "1"))" class="current">原创</a>
                                                    }
                                                    else{
                                                        <a title="原创" action="IsOri" href="@(Utils.AddQueryToUrl(u, "IsOri", "1"))">原创</a>
                                                    }
                                                    if(Model.IsHavePic==1){
                                                          <a title="图片" action="IsHavePic" href="@(Utils.AddQueryToUrl(u, "IsHavePic", "1"))"  class="current">图片</a>
                                                    }
                                                    else
                                                    {
                                                          <a title="图片" action="IsHavePic" href="@(Utils.AddQueryToUrl(u, "IsHavePic", "1"))">图片</a>
                                                    }
                                              if(Model.IsHaveVideo==1){
                                                          <a title="视频" action="IsHaveVideo" href="@(Utils.AddQueryToUrl(u, "IsHaveVideo", "1"))"  class="current">视频</a>
                                              }
                                              else
                                              {
                                                       <a title="视频" action="IsHaveVideo" href="@(Utils.AddQueryToUrl(u, "IsHaveVideo", "1"))">视频</a>
                                              }
                                               if(Model.IsHaveMusic==1){
                                                        <a title="音乐"action="IsHaveMusic" href="@(Utils.AddQueryToUrl(u, "IsHaveMusic", "1"))" class="current">音乐</a>
                                               }
                                               else
                                               {
                                                       <a title="音乐" action="IsHaveMusic" href="@(Utils.AddQueryToUrl(u, "IsHaveMusic", "1"))">音乐</a>
                                               }
                                             if(Model.IsHaveVote==1){
                                                          <a title="投票" action="IsHaveVote" href="@(Utils.AddQueryToUrl(u, "IsHaveVote", "1"))" class="current">投票</a>
                                             }
                                             else
                                             {
                                                         <a title="投票" action="IsHaveVote" href="@(Utils.AddQueryToUrl(u, "IsHaveVote", "1"))">投票</a>
                                             }
                                           
                                                    }

							</div>
							<div class="right">
								<div class="lf searchbg">
									<input type="text" class="input" value="@(string.IsNullOrEmpty(Model.Key) ? "搜索我自己的话" : Model.Key)" id="filter_mkey_input"
                                                        name="filter_search" style="color: rgb(153, 153, 153);">
                                                    <a href="#" class="searcheck" id="filter_mkey_btn">搜索</a><a class="searchadv" href="#"
                                                        id="filter_adv_show">高级搜索</a>
								</div>
							</div>
							<div class="clear"></div>
						</div>
						                                        <div style="display: @(Model.IsAdvanced>0?"block":"none");" id="filter_adv_panel" class="nfAdv">
                                            <div class="close">
                                                <a id="filter_adv_hide" class="rt" href="#">关闭高级搜索</a></div>
                                           
                                            <input type="hidden" id="gid" name="gid" value="0">
                                            <input type="hidden" id="filter_adv_search" name="filter_adv_search" value="1">
                                            <dl class="dll1 clearFix">
                                                <dt class="MIB_txtbl">类&nbsp;&nbsp;&nbsp;&nbsp;型：</dt>
                                                <dd>
                                                    <div class="subdl">
                                                        <label for="filter_ori">
                                                            <input type="checkbox" id="filter_ori" name="filter_ori" value="1" @(Model.IsOri>0?"checked":"") />原创</label>
                                                        <label for="filter_ret">
                                                            <input type="checkbox" id="filter_ret" name="filter_ret" value="1"  @(Model.IsRet>0?"checked":"")>转发</label>
                                                    </div>
                                                    <div class="subdl">
                                                        <label for="filter_text">
                                                            <input type="checkbox" id="filter_text" name="filter_text" value="1"  @(Model.IsHaveLink>0?"checked":"")>含短链</label>
                                                        <label for="filter_pic">
                                                            <input type="checkbox" id="filter_pic" name="filter_pic" value="1"  @(Model.IsHavePic>0?"checked":"")>含图片</label>
                                                        <label for="filter_video">
                                                            <input type="checkbox" id="filter_video" name="filter_video" value="1"  @(Model.IsHaveVideo>0?"checked":"")>含视频</label>
                                                        <label for="filter_music">
                                                            <input type="checkbox" id="filter_music" name="filter_music" value="1" @(Model.IsHaveMusic>0?"checked":"")>含音乐</label>
                                                            <label for="filter_vote">
                                                            <input type="checkbox" id="filter_vote" name="filter_vote" value="1"  @(Model.IsHaveVote>0?"checked":"")>含投票</label>
                                                    </div>
                                                </dd>
                                            </dl>
                                            <dl class="dll1 dll2 clearFix MIB_linedot2">
                                                <dt class="MIB_txtbl">关键字：</dt>
                                                <dd>
                                                    <input type="text" style="color: rgb(153, 153, 153);" name="filter_search" 
                                                        id="filter_adv_input" class="swidth" value="@(string.IsNullOrEmpty(Model.Key) ? "搜索我自己的话" : Model.Key)">
                                                </dd>
                                                <dt class="MIB_txtbl">时&nbsp;&nbsp;&nbsp;&nbsp;间：</dt>
                                                <dd>
                                                    <input type="text" value="@(Model.StartTime!=null?Model.StartTime.Value.ToString("yyyy-MM-dd"):"选择日期")" class="tinp" id="filter_adv_stime" def="选择日期" name="starttime"
                                                        style="color: rgb(153, 153, 153);" readonly="">
                                                    <span>至</span>
                                                    <input type="text" value="@(Model.EndTime != null ? Model.EndTime.Value.ToString("yyyy-MM-dd") : DateTime.Now.ToString("yyyy-MM-dd"))" class="tinp" id="filter_adv_etime" def="选择日期"
                                                        name="endtime" style="color: rgb(153, 153, 153);" readonly="">
                                                </dd>
                                            </dl>
                                            <dl class="dll1 dll3 clearFix">
                                                <dt>&nbsp;</dt>
                                                <dd>
                                                    <a id="filter_adv_btn" class="btn_normal btnxs" href="#"><em>搜索</em></a></dd>
                                            </dl>
                                           
                                        </div>
				</div>
				                 <script type="text/javascript">
				                     $("#filter_adv_show").click(function () {
				                         $("#filter_adv_panel").fadeIn();
				                         $("#filter_key_panel").hide();
				                         return false;
				                     });
				                     $("#filter_adv_hide").click(function () {

				                         $("#filter_adv_panel").fadeOut(function () { $("#filter_key_panel").show(); });
				                         return false;
				                     });
				                     $("#filter_mkey_input").JQP_HighLineInput2({ nullCon: "搜索我自己的话" }).keyup(function (e) {
				                         if (e.which == 13) {
				                             if (this.value && this.value != "搜索我自己的话") {
				                                 var url;
				                                 if (window.location.href.indexOf("#!") >= 0) {
				                                     url = "#!" + window.location.href.replace(App.config.Domain, "").split('!')[1];
				                                 }
				                                 else {
				                                     url = "#!" + window.location.href.replace(App.config.Domain, "");
				                                 }
				                                 url = App.RemoveQueryFromUrl(url, "page");
				                                 window.location.href = App.AddQueryToUrl(url, "Key", encodeURIComponent($.trim($(this).val())));

				                             }
				                         }
				                     });
				                     var advSearch = function () {
				                         var url;
				                         if (window.location.href.indexOf("#!") >= 0) {
				                             url = "#!" + window.location.href.replace(App.config.Domain, "").split('!')[1];
				                         }
				                         else {
				                             url = "#!" + window.location.href.replace(App.config.Domain, "");
				                         }
				                         url = App.RemoveQueryFromUrl(url, "page");
				                         url = App.AddQueryToUrl(url, "IsAdvanced", "1");
				                         if (App.E("filter_ori").checked) {
				                             url = App.AddQueryToUrl(url, "IsOri", "1");
				                         }
				                         else {
				                             url = App.RemoveQueryFromUrl(url, "IsOri");
				                         }
				                         if (App.E("filter_ret").checked) {
				                             url = App.AddQueryToUrl(url, "IsRet", "1");
				                         }
				                         else {
				                             url = App.RemoveQueryFromUrl(url, "IsRet");
				                         }
				                         if (App.E("filter_text").checked) {
				                             url = App.AddQueryToUrl(url, "IsHaveLink", "1");
				                         }
				                         else {
				                             url = App.RemoveQueryFromUrl(url, "IsHaveLink");
				                         }
				                         if (App.E("filter_pic").checked) {
				                             url = App.AddQueryToUrl(url, "IsHavePic", "1");
				                         }
				                         else {
				                             url = App.RemoveQueryFromUrl(url, "IsHavePic");
				                         }
				                         if (App.E("filter_video").checked) {
				                             url = App.AddQueryToUrl(url, "IsHaveVideo", "1");
				                         }
				                         else {
				                             url = App.RemoveQueryFromUrl(url, "IsHaveVideo");
				                         }
				                         if (App.E("filter_music").checked) {
				                             url = App.AddQueryToUrl(url, "IsHaveMusic", "1");
				                         }
				                         else {
				                             url = App.RemoveQueryFromUrl(url, "IsHaveMusic");
				                         }
				                         if (App.E("filter_vote").checked) {
				                             url = App.AddQueryToUrl(url, "IsHaveVote", "1");
				                         }
				                         else {
				                             url = App.RemoveQueryFromUrl(url, "IsHaveVote");
				                         }

				                         if (App.E("filter_adv_input").value && App.E("filter_adv_input").value != "搜索我自己的话") {
				                             url = App.AddQueryToUrl(url, "Key", encodeURIComponent($.trim(App.E("filter_adv_input").value)));
				                         }
				                         else {
				                             url = App.RemoveQueryFromUrl(url, "Key");
				                         }
				                         if (App.E("filter_adv_stime").value && App.E("filter_adv_stime").value != "选择日期") {
				                             url = App.AddQueryToUrl(url, "StartTime", App.E("filter_adv_stime").value);
				                         }
				                         else {
				                             url = App.RemoveQueryFromUrl(url, "StartTime");
				                         }
				                         if (App.E("filter_adv_etime").value && App.E("filter_adv_etime").value != "选择日期") {
				                             url = App.AddQueryToUrl(url, "EndTime", App.E("filter_adv_etime").value);
				                         }
				                         else {
				                             url = App.RemoveQueryFromUrl(url, "EndTime");
				                         }
				                         window.location.href = url;
				                     }
				                     $("#filter_adv_input").JQP_HighLineInput2({ nullCon: "搜索我自己的话" }).keyup(function (e) {
				                         if (e.which == 13) {
				                             advSearch();
				                         }
				                     });
				                     $("#filter_adv_stime").JQP_HighLineInput2({ nullCon: "选择日期" }).JQP_DatePicker({ curDate: new Date() });
				                     $("#filter_adv_etime").JQP_DatePicker({ curDate: new Date() });

				                     $("#filter_mkey_btn").click(function () {
				                         if ($("#filter_mkey_input").val() != "搜索我自己的话") {
				                             var url;
				                             if (window.location.href.indexOf("#!") >= 0) {
				                                 url = "#!" + window.location.href.replace(App.config.Domain, "").split('!')[1];
				                             }
				                             else {
				                                 url = "#!" + window.location.href.replace(App.config.Domain, "");
				                             }
				                             url = App.RemoveQueryFromUrl(url, "page");
				                             window.location.href = App.AddQueryToUrl(url, "Key", encodeURIComponent($.trim($("#filter_mkey_input").val())));
				                         }
				                         return false;
				                     });
				                     $("#filter_adv_btn").click(function () {
				                         advSearch();
				                         return false;
				                     });
                                        </script>

                             <div id="loadMB"  class="feed_lding MIB_txtbl">
                                    <em class="icon_lding"></em>正在加载，请稍候...</div>

                            <div id="loadError"  style="display:none;"  class="feed_lding MIB_txtbl">
                                    <em class="icon_lding"></em>加载失败，<a  href="javascript:ajaxGetMiniBlog(true);">请重试</a>...</div>

                            <div id="loadNoresult" style="display:none;" class="feed_lding MIB_txtbl">
                                    <em class="icon_lding"></em>此人很懒...</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

